package amu.model;

public class Review {
	private Integer id;
    private Customer customer;
    private String review;
    private Book book;
    private int numHelpful;
    private int numUnhelpful;
    private int rating;
   
    public Review(int id, Customer customer, String review, Book book, int rating, int numHelpful, int numUnhelpful) {
        this.id = id;
        this.customer = customer;
        this.review = review;
        this.setBook(book);
        this.setRating(rating);
        this.setNumHelpful(numHelpful);
        this.setNumUnhelpful(numUnhelpful);
    }
    
    public Review(int id, Customer customer, String review, Book book, int rating) {
        this.id = id;
        this.customer = customer;
        this.review = review;
        this.setBook(book);
        this.setRating(rating);
        this.setNumHelpful(0);
        this.setNumUnhelpful(0);
    }

    public Review(Customer customer, String review, Book book, int rating) {
        this.id = null;
        this.customer = customer;
        this.review = review;
        this.book = book;
        this.setRating(rating);
        this.setNumHelpful(0);
        this.setNumUnhelpful(0);
    }

    public int getId() {
        return id;
    }

    public Customer getCustomer() {
        return customer;
    }

    public String getReview() {
        return review;
    }

    public void setReview(String Review) {
        this.review = Review;
    }

	public Book getBook() {
		return book;
	}

	public void setBook(Book book) {
		this.book = book;
	}

	public int getNumHelpful() {
		return numHelpful;
	}

	public void setNumHelpful(int numHelpful) {
		this.numHelpful = numHelpful;
	}

	public int getNumUnhelpful() {
		return numUnhelpful;
	}

	public void setNumUnhelpful(int numUnhelpful) {
		this.numUnhelpful = numUnhelpful;
	}

	public int getRating() {
		return rating;
	}

	public void setRating(int rating) {
		this.rating = rating;
	}
}
